package com.lplb.api.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(value = {
        "com.lplb.api.admin.service",
        "com.lplb.common.coreconfig.config",
        "com.lplb.common.swagger.config",
        "com.lplb.common.mybatisplus.config",
        "com.lplb.common.redis.config",
        "com.lplb.common.log.config",
        "com.lplb.websocket",
})
@MapperScan({"com.lplb.api.admin.mapper"})
@EnableFeignClients(basePackages = {"com.lplb.api.admin.feign","com.lplb.common.coreconfig.feign"})
public class AdminServer {
    public static void main(String[] args) {
        SpringApplication.run(AdminServer.class, args);
    }
}
